
import request from '@/utils/request'
import type {  } from './types'
const basePre = '/api/home'

/**
 * 获取统计数字
 */
export function getTotal() {
  return request({
    url: `${basePre}/total`,
    method: 'post',
  })
}

/**
 * 获取商品销售情况
 */
export function getSaleGoodsTotalApi() {
  return request({
    url: `${basePre}/sale/goods`,
    method: 'post',
  })
}
/**
 * 获取近30天内销售额统计
 */
export function getSaleMoneyTotalApi() {
  return request({
    url: `${basePre}//sale/money`,
    method: 'post',
  })
}
